Repository navigation
feat(ENG-46): add the Meta AI Answer tool (0.2.0) - #10
Merged
Merged
Conversation
Add the meta_ai tool. It sends a prompt to POST /v1/monitor/meta-ai and returns the answer and its sources, the same as the Bing AI Mode tool. Add it to the provider, the plugin text and the README. Set the version and the User-Agent to 0.2.0. The test fixture is a shortened copy of the example response in cloro-dev/docs#324. It is not a recorded API response. No live call was made, because the endpoint is not deployed. Claude-Session: https://claude.ai/code/session_01Vi9vyc4nPaECMgzccWiEMb
11 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Meta AI Answer tool on
POST /v1/monitor/meta-ai(ENG-46). The endpoint is in cloro-dev/backend#600.Changes
tools/meta_ai.pyandtools/meta_ai.yaml(Prompt, Country). It uses the sharedaskandanswer_texthelpers.provider/cloro.yaml: the new tool and the description.manifest.yaml: version 0.1.2 to 0.2.0 and the description.cloro_api.USER_AGENTis 0.2.0.tests/fixtures/meta-ai.jsonandmeta-aiin the answer tool test.The test fixture is a shortened copy of the example response in cloro-dev/docs#324. It is not a recorded API response. No live call was made, because the endpoint is not deployed.
Checks
uv run --python 3.12 --with-requirements requirements.txt --with pytest pytest tests: 35 passed.ruff check: pass.dify plugin package .(the Dify CLI is not installed here). The package workflow builds the.difypkgon release.Before merge
Do not merge before cloro-dev/backend#600 is deployed. A merge publishes the package, and the endpoint returns 404 until then. The docs page https://cloro.dev/docs/api-reference/endpoint/monitor-meta-ai returns 404 until cloro-dev/docs#324 merges.
After release
Open a new langgenius/dify-plugins PR with the 0.2.0
.difypkg.https://claude.ai/code/session_01Vi9vyc4nPaECMgzccWiEMb